
class Student(object):
    count = 0

    def __init__(self, name):
        self.name = name
        Student.count += 1

        print(Student.count)

stu1 = Student('小刚')
stu1 = Student('小刚')
stu1 = Student('小刚')
stu1 = Student('小刚')
stu1 = Student('小刚')
